﻿@model IEnumerable<KinoDB.Viewmodels.Internal.Film.FilmViewModel>

@{
    ViewBag.Title = "Movie Management";
}

<h2>MovieManagement</h2>

<p>
    @Html.ActionLink("Create New", "CreateMovie")
</p>
<table class="table">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Titel)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Länge)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.FSK)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Beschreibung)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Titel)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Länge)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.FSK)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Beschreibung)
        </td>
        <td>
            @Html.ActionLink("Edit", "EditMovie", new { id=item.Id }) |
            @Html.ActionLink("Details", "MovieDetails", new { id=item.Id }) |
            @Html.ActionLink("Delete", "DeleteMovie", new { id=item.Id })
        </td>
    </tr>
}

</table>
